package com.amumu.drama.common.modules.aliyunoss.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

/**
 * @author sunzhuang
 * @date 2024/6/17 14:21
 * @slogan 天下风云出我辈, 一入代码岁月催
 * @desc todo
 */


@Data
@Configuration(proxyBeanMethods = false)
public class AliyunOssConfig {

    @Value("${aliyun.oss.accessKey:}")
    private String accessKey;

    @Value("${aliyun.oss.accessSecret:}")
    private String accessSecret;

    @Value("${aliyun.oss.endpoint:}")
    private String endpoint;

    @Value("${aliyun.oss.internalEndpoint:}")
    private String internalEndpoint;

    /**
     * 与oss的交互是否都使用https协议。默认为http
     */
    @Value("${aliyun.oss.useHttps:false}")
    private boolean useHttps;


}
